package com.aegean.MonitorExamSYS.monitor.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.monitor.business.MonitorBusiness;
import com.aegean.MonitorExaxSYS.model.ConductionValue;
import com.opensymphony.xwork2.ActionSupport;

@Controller("NavigationMonitorLogin")
@Scope("prototype")
public class NavigationMonitorLogin extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5553486212808773830L;
	private List<ConductionValue> conductions;
	@Resource
	MonitorBusiness business;

	public List<ConductionValue> getConductions() {
		return conductions;
	}

	public void setConductions(List<ConductionValue> conductions) {
		this.conductions = conductions;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		conductions = business.showUnitList();
		return SUCCESS;
	}

}
